package 设计模式.util.prototype;

import java.io.Serializable;
import java.util.Date;

/**
 * @功能
 * @创建时间 2020/5/3
 */
public class Sheep implements Cloneable, Serializable {
    public Sheep(String sname, Date sbirthday) {
        this.sname = sname;
        this.sbirthday = sbirthday;
    }

    public String getSname() {
        return sname;
    }

    public void setSname(String sname) {
        this.sname = sname;
    }

    public Date getSbirthday() {
        return sbirthday;
    }

    public void setSbirthday(Date sbirthday) {
        this.sbirthday = sbirthday;
    }

    private String sname;
    private Date sbirthday;

    @Override
    protected Object clone() throws CloneNotSupportedException {
        return super.clone();
    }
}
